/**
 * 
 */
package uniandes.dermatologia.resources.models;

import org.droidpersistence.annotation.Column;
import org.droidpersistence.annotation.ForeignKey;
import org.droidpersistence.annotation.PrimaryKey;
import org.droidpersistence.annotation.Table;

/**
 * @author Julio
 *
 */
@Table(name="QUESTION")
public class QuestionModel {

	@PrimaryKey
	@Column(name="ID")
	private long id;
	
	@Column(name="CONTENT")
	private String content;
	
	@Column(name="TYPE")
	private long type;
	
	@Column(name="CASE_ID")
	@ForeignKey(tableReference="MY_CASE", onDeleteCascade=true, columnReference="ID")
	private long case_id;
	
	@Column(name="TEST_ID")
	@ForeignKey(tableReference="TEST", onDeleteCascade=true, columnReference="ID")
	private long test_id;
	
	/**
	 * @return the id
	 */
	public long getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(long id) {
		this.id = id;
	}

	/**
	 * @return the content
	 */
	public String getContent() {
		return content;
	}

	/**
	 * @param content the content to set
	 */
	public void setContent(String content) {
		this.content = content;
	}


	/**
	 * @return the case_id
	 */
	public long getCase_id() {
		return case_id;
	}

	/**
	 * @param case_id the case_id to set
	 */
	public void setCase_id(long case_id) {
		this.case_id = case_id;
	}

	/**
	 * @return the test_id
	 */
	public long getTest_id() {
		return test_id;
	}

	/**
	 * @param test_id the test_id to set
	 */
	public void setTest_id(long test_id) {
		this.test_id = test_id;
	}

	/**
	 * @return the type
	 */
	public long getType() {
		return type;
	}

	/**
	 * @param type the type to set
	 */
	public void setType(long type) {
		this.type = type;
	}

}
